package model

import "encoding/json"

func ToJSON(v interface{}) string {
	marshal, err := json.Marshal(v)
	if err != nil {
		return "转换错误"
	}
	return string(marshal)
}
